package apy.codecase.business.presenter;

import android.content.Context;

import java.util.List;

import apy.codecase.App;
import apy.codecase.base.BasePresenterImpl;
import apy.codecase.base.BaseView;
import apy.codecase.model.PswDaoModel;
import apy.codecase.greendao.PswDaoUtils;

/**
 * Created by Administrator on 2017/10/25.
 */

public class PswImpl extends BasePresenterImpl {

    public PswImpl(Context mContext, BaseView baseView) {
        super(mContext, baseView);
    }

    @Override
    public void loadData(Object... objects) {
        PswDaoUtils userDaoUtils = new PswDaoUtils(mContext);
        List<PswDaoModel> userDaoModels = userDaoUtils.queryAllUserDaoModel();
        List<PswDaoModel> pswDaoModels = userDaoUtils.queryUserDaoModelByQueryBuilder1(App.TICKET);
        baseView.afterLoadData(pswDaoModels);


    }
}